#ifndef ACCVIEWER_H
#define ACCVIEWER_H

#include <QtWidgets/QWidget>
#include "uiofviewer.h"
#include "qwt_scale_div.h"
class DataViewer : public QWidget, public UiOfDataViewer
{
	Q_OBJECT

public:
	DataViewer(QString& name,int num_plot_,QWidget *parent = 0);
	~DataViewer();
	void setYAxisTitle(QString& y_title);
	void setValueTitle(QStringList& v_titles);
	void setPlotTitle(QStringList& p_titles);
private:
	bool event(QEvent* event_);
	void closeEvent(QCloseEvent* event_);
	int num_plot; 
	bool plot_pause;
	QIcon icon_pause;
	QIcon icon_play;
	QIcon icon_hide;
	QIcon icon_show;
signals:
    void winClose(const QString& win_name);
private slots:
	void autoScale();
	void pause();
	void updateXAxisWidth(double w);
	void setKeyZoomer();
	void setWheelZoomer();
	void maximizePlot(Plot* p);
	void hideRightBar();
	void saveData(const QString&);
};

#endif // ACCVIEWER_H
